﻿using Microsoft.AspNetCore.Components.WebView.WindowsForms;
using Microsoft.Extensions.DependencyInjection;


namespace WinFormsApp
{
    public partial class FrmArea : Form
    {
        public FrmArea()
        {
            InitializeComponent();


            var services = new ServiceCollection();
            services.AddBlazorWebView();
            blazorWebView1.HostPage = "wwwroot\\index.html";
            blazorWebView1.Services = services.BuildServiceProvider();
            blazorWebView1.RootComponents.Add<AreaList>("#app");
        }
    }
}
